<template>
	<view>
		<wd-search hide-cancel />
		<view class="role-list">
			<view class="role-list-li">
				<text>角色名称</text>
				<wd-button size="small" plain>删除</wd-button>
			</view>
			<view class="role-list-li">
				<text>角色名称</text>
				<wd-button size="small" plain>删除</wd-button>
			</view>
			<view class="role-list-li">
				<text>角色名称</text>
				<text>角色名称</text>
				<wd-button size="small" plain>删除</wd-button>
			</view>
			<view class="role-list-li">
				<text>角色名称</text>
				<wd-button size="small" plain>删除</wd-button>
			</view>

		</view>
	</view>
</template>

<script setup>
	import overallRequest from "@/utool/http/http.js"
	import {
		reactive
	} from 'vue'
	import {
		onReady,
		onLoad,
		onReachBottom
	} from "@dcloudio/uni-app"

	const Data = reactive({
		user: null
	})
	function GetRoleList() {
		let url = "/Manage/GetRoleList"
		let user = Data.user
		overallRequest(url, {
			query:{
				user
			}
		}).then(res => {
			console.log(res);
		}).catch(err => {
			console.log(err);
		})
	}
	onLoad((query) => {
		let {
			user
		} = query
		Data.user = user
		GetRoleList()
	})
</script>

<style>

</style>